<?php 
namespace app\index\validate;
use think\Validate;
/**
 * Created by Submint Text.
 * User: hetaoren<452649510@qq.com>
 * Date: 2017/03/10
 * Explain: 角色验证器
 */
class Roles extends Validate{
	protected $rule = [
        ['roleName'  ,'require|max:30','请输入角色名称|角色名称不能超过10个字符']
    ];

    protected $scene = [
        'add'   =>  ['menuName'],
        'edit'  =>  ['menuName']
    ]; 
}